import { request } from '@umijs/max';

export function getConfig() {
  return request('/xyh/config/getConfig', {
    method: 'get',
  });
}

export function saveConfig(data) {
  return request('/xyh/config/saveConfig', {
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json',
    },
  });
}
